package com.formulas.certification;

import com.formulas.component.catchlog.ResponseHandlerI;
import org.springframework.stereotype.Component;

/**
 * @author yiwannuofulasi
 * @date 2023/6/6 15:13
 */
@Component
public class CustomResponseHandler implements ResponseHandlerI {

    @Override
    public Object handle(Class returnType, String errCode, String errMsg) {
        System.out.println("==== This is Customized Response handler");
        CatchDemo.DemoResponse response = new CatchDemo.DemoResponse();
        response.setSuccess(false);
        return response;
    }
}